<div ng-controller="StoreCtrl" ng-init="addresslistAction()" class="sui-form form-horizontal">
    <form name="addressForm" novalidate ng-submit="addressAdd()">
        <ul class="sui-breadcrumb">
            <li><a href="#/store/list">{{'store'|translate}}</a></li>
            <li>附近地址
                <a href="#/store/address?store_id={{store_id}}&appid={{app_id}}"
                    class="sui-btn btn-success">{{'添加地址'|translate}}
                </a></li>

        </ul>
        <table class="sui-table table-bordered">
            <thead>
                <tr>
                    <th>{{'#'|translate}}</th>
                    <th>{{'经营资质主体'|translate}}</th>
                    <th>{{'经营资质证件号'|translate}}</th>
                    <th>{{'经营资质地址'|translate}}</th>
                    <th>{{'相关证明材料'|translate}}</th>
                    <th>{{'操作'|translate}}</th>
                </tr>
            </thead>
            <tbody>
                <tr ng-repeat="list in authrizeApp">
                    <td>{{list.nick_name}}</td>
                    <td>{{list.app_id}}</td>
                    <td>{{list.principal_name}}</td>
                    <td><img ng-src="{{list.avartar_url}}" style="width: 60px;" /></td>
                    <td>
                        <a ng-if="list.service_type_id==2 && list.app_id!=BackAppId"
                            href="#/store/pubcode?store_id={{store_id}}&appid={{list.app_id}}"
                            class="sui-btn btn-primary">{{'上传小程序'|translate}}
                        </a>
                    </td>
                    <td>
                        <a ng-if="list.service_type_id==2"
                            href="#/store/tester?store_id={{store_id}}&appid={{list.app_id}}"
                            class="sui-btn btn-success">{{'设置体验者'|translate}}
                        </a>
                    </td>
                    <td>
                        <a ng-if="list.service_type_id==2 && list.app_id!=BackAppId"
                            href="#/store/payconfig?store_id={{store_id}}&appid={{list.app_id}}&cust_account_id={{list.cust_account_id}}"
                            class="sui-btn btn-success">{{'设置支付参数'|translate}}
                        </a>
                    </td>
                    <td>
                        <button class="sui-btn btn-success" ng-click="openQrcode(list.app_id)">查看二维码</button>
                    </td>
                    <td><a href="#/store/address?store_id={{store_id}}&appid={{list.app_id}}"
                            class="sui-btn btn-success">{{'添加地址'|translate}}
                        </a></td>
                    <td>
                        <button class="sui-btn btn-info" ng-click="setAppStore(list.app_id,store_id)">关联</button>
                    </td>
                </tr>
            </tbody>
        </table>
    </form>
</div>